Skip to content

Get rid of deprecated new instance calls#435

Closed
FSchumacher wants to merge 52 commits intoapache:trunkfrom
FSchumacher:get-rid-of-deprecated-newInstance-calls
Closed

Get rid of deprecated new instance calls#435
FSchumacher wants to merge 52 commits intoapache:trunkfrom
FSchumacher:get-rid-of-deprecated-newInstance-calls

Conversation

@FSchumacher
Copy link
Contributor

Description

This basically is an update to #431

Get rid of calls to Class#newInstance() by replacing them with Class#getDeclaredConstructor()#newInstance()

And while I edited the classes I cleaned them up a bit, when eclipse showed warnings. I think those snippets should be committed separately, but I left them in here, so that they can be discussed if necessary.

Motivation and Context

Java 9 deprecates Class#newInstance().

How Has This Been Tested?

Tests should run when github merges this for testing.

Screenshots (if appropriate):

Types of changes

  • cleanup

Checklist:

Clarify the thrown exceptions of the createThinkTime method, while we
are here
With the introduction of varargs this can be written simpler. We don't
have to construct arrays here anymore.
asfgit pushed a commit that referenced this pull request Dec 2, 2018
asfgit pushed a commit that referenced this pull request Dec 2, 2018
asfgit pushed a commit that referenced this pull request Dec 2, 2018
asfgit pushed a commit that referenced this pull request Dec 2, 2018
@asfgit asfgit closed this in dcb7579 Dec 2, 2018
StorDm pushed a commit to etnetera/jmeter that referenced this pull request Jan 7, 2021
StorDm pushed a commit to etnetera/jmeter that referenced this pull request Jan 7, 2021
StorDm pushed a commit to etnetera/jmeter that referenced this pull request Jan 7, 2021
Part of apache#435 and Bugzilla Id: 62972


git-svn-id: https://svn.apache.org/repos/asf/jmeter/trunk@1847961 13f79535-47bb-0310-9956-ffa450edef68

Former-commit-id: d08e486
StorDm pushed a commit to etnetera/jmeter that referenced this pull request Jan 7, 2021
StorDm pushed a commit to etnetera/jmeter that referenced this pull request Jan 7, 2021
Part of apache#435 and Bugzilla Id: 62972


git-svn-id: https://svn.apache.org/repos/asf/jmeter/trunk@1847965 13f79535-47bb-0310-9956-ffa450edef68

Former-commit-id: 4f844ea
StorDm pushed a commit to etnetera/jmeter that referenced this pull request Jan 7, 2021
Newer java versions have changed the method signatures to varargs. Use those varargs.
Part of apache#435 and Bugzilla Id: 62972


git-svn-id: https://svn.apache.org/repos/asf/jmeter/trunk@1847966 13f79535-47bb-0310-9956-ffa450edef68

Former-commit-id: b1c9cf0
StorDm pushed a commit to etnetera/jmeter that referenced this pull request Jan 7, 2021
StorDm pushed a commit to etnetera/jmeter that referenced this pull request Jan 7, 2021
StorDm pushed a commit to etnetera/jmeter that referenced this pull request Jan 7, 2021
StorDm pushed a commit to etnetera/jmeter that referenced this pull request Jan 7, 2021
StorDm pushed a commit to etnetera/jmeter that referenced this pull request Jan 7, 2021
StorDm pushed a commit to etnetera/jmeter that referenced this pull request Jan 7, 2021
StorDm pushed a commit to etnetera/jmeter that referenced this pull request Jan 7, 2021
StorDm pushed a commit to etnetera/jmeter that referenced this pull request Jan 7, 2021
Part of apache#435 and Bugzilla Id: 62972


git-svn-id: https://svn.apache.org/repos/asf/jmeter/trunk@1847978 13f79535-47bb-0310-9956-ffa450edef68

Former-commit-id: cb56c49
StorDm pushed a commit to etnetera/jmeter that referenced this pull request Jan 7, 2021
StorDm pushed a commit to etnetera/jmeter that referenced this pull request Jan 7, 2021
Part of apache#435 and Bugzilla Id: 62972


git-svn-id: https://svn.apache.org/repos/asf/jmeter/trunk@1847980 13f79535-47bb-0310-9956-ffa450edef68

Former-commit-id: 741468c
StorDm pushed a commit to etnetera/jmeter that referenced this pull request Jan 7, 2021
StorDm pushed a commit to etnetera/jmeter that referenced this pull request Jan 7, 2021
StorDm pushed a commit to etnetera/jmeter that referenced this pull request Jan 7, 2021
StorDm pushed a commit to etnetera/jmeter that referenced this pull request Jan 7, 2021
StorDm pushed a commit to etnetera/jmeter that referenced this pull request Jan 7, 2021
StorDm pushed a commit to etnetera/jmeter that referenced this pull request Jan 7, 2021
StorDm pushed a commit to etnetera/jmeter that referenced this pull request Jan 7, 2021
StorDm pushed a commit to etnetera/jmeter that referenced this pull request Jan 7, 2021
StorDm pushed a commit to etnetera/jmeter that referenced this pull request Jan 7, 2021
Closes apache#435
Bugzilla Id: 62972


git-svn-id: https://svn.apache.org/repos/asf/jmeter/trunk@1847991 13f79535-47bb-0310-9956-ffa450edef68

Former-commit-id: dcb7579
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant